home *** CD-ROM | disk | FTP | other *** search
- on highlightRelatedInks whichInk
- global gCurrentInk, gRelatedInksList
- set whichPair to (whichInk - 54) / 11.85999999999999943
- if whichPair < 1 then
- set gCurrentInk to 0
- else
- if whichPair > integer(whichPair) then
- set gCurrentInk to integer(whichPair)
- else
- set gCurrentInk to integer(whichPair) - 1
- end if
- end if
- set the locV of sprite 21 to getaProp(gRelatedInksList, gCurrentInk)
- set the visible of sprite 21 to 1
- updateStage()
- updateText("Related Inks")
- setObjectInkRelatedInks()
- end
-
- on setObjectInkRelatedInks
- global gCurrentInk, gLeftInkList, gRightInkList
- set newInkLeft to getaProp(gLeftInkList, gCurrentInk)
- set newInkRight to getaProp(gRightInkList, gCurrentInk)
- set the ink of sprite 7 to newInkLeft
- set the ink of sprite 8 to newInkRight
- updateStage()
- end
-
- on swapObjectRelatedInks whichDirection
- global gThisPair
- set testNameLeft to the name of the member of sprite 7
- set testNameRight to the name of the member of sprite 8
- if whichDirection = "right" then
- if testNameLeft = "objectLeft 11" then
- set the member of sprite 7 to member "objectLeft 1" of castLib "Internal"
- set the member of sprite 8 to member "objectRight 1" of castLib "Internal"
- else
- set the memberNum of sprite 7 to the memberNum of sprite 7 + 2
- set the memberNum of sprite 8 to the memberNum of sprite 8 + 2
- end if
- else
- if whichDirection = "left" then
- if testNameLeft = "objectLeft 1" then
- set the member of sprite 7 to member "objectLeft 11" of castLib "Internal"
- set the member of sprite 8 to member "objectRight 11" of castLib "Internal"
- else
- set the memberNum of sprite 7 to the memberNum of sprite 7 - 2
- set the memberNum of sprite 8 to the memberNum of sprite 8 - 2
- end if
- end if
- end if
- updateStage()
- end
-